<?php
class AppController extends Controller {

	var $components = array('Auth');

	function beforeFilter() {
		$this->Auth->authorize = 'controller';
		$this->Auth->loginAction = array('controller'=>'users', 'action'=>'login');
		$this->Auth->loginRedirect = array('controller'=>'users', 'action'=>'index');
		$this->Auth->userScope = array('User.active = 1');
	}

	function isAuthorized() {
		return true;
	}

}
?>